﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Data.Linq;
using System.ComponentModel;

namespace MRSite.Entity
{

    /// <summary>
    /// 大转盘中奖用户信息
    /// </summary>
    [Table(Name = "dzpAwardUser")]
    public class dzpAwardUser : Entity
    {
        /// <summary>
        ///自增ID
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        /// 活动主键Id
        /// </summary>
        [Column(Name = "actId")]
        public int actId { get; set; }

        ///// <summary>
        ///// 刮刮卡活动期数Id
        ///// </summary>
        //[Column(Name = "perId")]
        //public int perId { get; set; }


        /// <summary>
        /// 用户Id
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Column(Name = "uName")]
        public string uName { get; set; }


        /// <summary>
        /// 用户手机号
        /// </summary>
        [Column(Name = "uTel")]
        public string uTel { get; set; }

        /// <summary>
        ///  用户openid
        /// </summary>
        [Column(Name = "openid")]
        public string openid { get; set; }

        /// <summary>
        ///  项目名称
        /// </summary>
        [Column(Name = "jxName")]
        public string jxName { get; set; }

        /// <summary>
        /// 奖项序号
        /// </summary>
        [Column(Name = "jxIndex")]
        public string jxIndex { get; set; }

        /// <summary>
        /// 奖品名称
        /// </summary>
        [Column(Name = "jpName")]
        public string jpName { get; set; }

        ///// <summary>
        ///// 奖金
        ///// </summary>
        //[Column(Name = "jjMoney"), DefaultValue(0)]
        //public decimal jjMoney { get; set; }

        /// <summary>
        /// 中奖时间
        /// </summary>
        [Column(Name = "createDate")]
        public DateTime createDate { get; set; }

        /// <summary>
        /// 已经领取 
        /// </summary>
        [Column(Name = "hasLingQu"), DefaultValue(0)]
        public int hasLingQu { get; set; }


        /// <summary>
        /// sn码
        /// </summary>
        [Column(Name = "sn")]
        public string sn { get; set; }

        ///// <summary>
        ///// 中的奖项id
        ///// </summary>
        //[Column(Name = "awardId")]
        //public int awardId { get; set; }

    }

}

